package com.jjb.common.task.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

@Configurable
public class TaskExecutorServiceConf {

    @Bean(value = "taskExecutorService__")
    public ExecutorService createExecutorService() {
        return Executors.newFixedThreadPool(20);
    }

}
